<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:vti="http://java.sun.com/jsf/composite/components/vti">
    <h:form id="formCadastroEmpresa" prependId="false">
        <div id="campoObrigatorio" class="campoObrigatorio">
            <h:graphicImage library="images" name="required.gif" styleClass="imgCampoObrigatorio" />
            <h:outputText value="#{msgs['item.obrigatorio']}" />
        </div>
        <h:panelGrid>
            <vti:inputText id="nome" label="#{msgs['campo.nome']}" required="true"
                            maxlength="80" size="51" value="#{empresaBean.entidade['nome']}" />
            <vti:inputText id="dominio" label="#{msgs['campo.dominio']}" required="true"
                            maxlength="120" size="51" value="#{empresaBean.entidade['dominio']}" />
        </h:panelGrid>
        <h:panelGrid columns="2" styleClass="barraBotoes">
            <p:commandButton action="#{empresaBean.salvar}"
                             label="#{msgs['acao.salvar']}"
                             value="#{msgs['acao.salvar']}"
                             title="#{msgs['acao.salvar']}" update="formCadastroEmpresa,#{messages}"
                             process="#{jsfManager.getRealName('nome_text,dominio_text')},@this" />
            <p:commandButton actionListener="#{empresaBean['resetCadastro']}"
                             label="#{msgs['acao.limpar']}"
                             value="#{msgs['acao.limpar']}"
                             title="#{msgs['acao.limpar']}" process="@this"
                             immediate="true" update="formCadastroEmpresa,#{messages}" />
        </h:panelGrid>
    </h:form>
</ui:composition>